<?php
namespace Home\Controller;
use Think\Controller;
class ListController extends Controller {
    public function index(){
    	// $mod=I('get.mod');
    	// $model=M($mod);
    	// $list=$model->where('state=1')->order('id desc')->select();
    	// $this->assign('list',$list);
    }
    public function listgroups(){
    	$modd='groups';
    	$modell=M($modd);
    	$listt=$modell->order('ydq_id desc')->select();
    	$this->assign('listt',$listt); 


        $mod='news';
        $model=M($mod);
        $list=$model->order('ydq_id desc')->select();
        $this->assign('list',$list);
       //dump($list);exit;
    	$this->display();
    }
    public function listpractices(){
    	$modd='practices';
    	$modell=M($modd);
    	$listt=$modell->order('ydq_id desc')->select();
    	$this->assign('listt',$listt);

           $mod='news';
        $model=M($mod);
        $list=$model->order('ydq_id desc')->select();
        $this->assign('list',$list);
       //dump($list);exit;
      
    	$this->display();
    }
 
}
?>